<include file="public@header"/>
</head>
<body>
    <div class="layui-fluid">
        <form action="{:url('AdminQuest/editTitlePost')}" method="post" class="layui-form js-ajax-form">
            <div class="layui-card">
                <div class="layui-card-header">编辑问题</div>
                <div class="layui-card-body">
                    
                    <!-- 文章标题 -->
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input class="layui-input form-replace" type="text" value="{$info['title']}" name="post[title]" data-field="title"
                                    placeholder="{:lang('PLEASE_ENTER')}标题"/>
                        </div>
                    </div>

                    
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <input type="hidden" name="id" value="{:input('id')}">
                            <if condition="cmf_auth_check(cmf_get_current_admin_id(), 'portal/AdminQuest/editPost')">
                                <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit">{:lang('SAVE')}</button>
                            </if>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">{:lang('BACK')}</a>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>

<include file="public@footer"/>
